﻿using FluentValidation;

namespace Jinjia.Approve.Model.Input
{
    public class HelloWorldSearchInput
    {
        public int id { get; set; }
    }

    public class HelloWorldSearchInputValidator : AbstractValidator<HelloWorldSearchInput>
    {
        public HelloWorldSearchInputValidator()
        {
            RuleFor(x => x.id).NotNull().WithMessage("Id不能为空")
                .GreaterThan(0).WithMessage("请输入正确的Id");
        }
    }
}